package com.emit.exception;

import lombok.Data;

/**
 * customer runtime exception
 *
 * @author zhangchao
 * @version 1.0.0
 * @date 2020-08-18
 */
@Data
public class BizException extends RuntimeException {
    /**
     * error code
     */
    protected String code;
    /**
     * error message
     */
    protected String msg;

    public BizException() {
        super();
    }
    public BizException(String msg) {
        super();
        this.msg = msg;
    }
    public BizException(String code,String msg) {
        super();
        this.msg = msg;
        this.code=code;
    }

}
